package com.gdglc.spring.biz.auth;

import java.util.List;

import com.fasterxml.jackson.core.Versioned;
import com.y2.authprj.bean.auth.model.Page;
import com.y2.authprj.bean.auth.model.StaffInfo;
import com.y2.authprj.bean.auth.vo.StaffInfoVo;
import com.y2.authprj.bean.auth.vo.UserroleVo;
import com.y2.authprj.exception.BizException;

public interface StaffInfoBiz {
	List<StaffInfo> findAll() throws BizException;
	//建飞的代码开始
		//登陆
		StaffInfo checkLogin(String staffNum,String pwd,String loginIp) throws BizException;
		//根据账号查询用户
		StaffInfo showByStaffNum(String staffNum)throws BizException;
		//查询没用角色的用户
		Page<StaffInfo> showStaff(UserroleVo vo) throws BizException;
		void updateLogin(StaffInfo staffInfo)throws BizException;
		
		//建飞的代码结束
		
		//增加
		public int addSta(StaffInfo sta);
		//修改				
		int updateStaff (StaffInfo staffInfo);
		//删除				
		public int deleteStaById(int id);
		//查询ID
		public StaffInfo StaffInfoById(int id);
				
		//按条件查询用户信息，按用户名模糊匹配查询
		public List<StaffInfo> findByStaff(StaffInfoVo vo);
				
		public int findStaffNum(String staffNum);
		//显示全部VO
		public List<StaffInfoVo> findAllVo(StaffInfoVo vo);
	

}
